package com.manong.bookstore.payment.feign;

import com.manong.common.utils.R;
import com.manong.bookstore.payment.entity.OrderDetailEntity;
import com.manong.bookstore.payment.entity.OrderEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("bookstore-order")
public interface OrderFeignService {
    @RequestMapping("/order/order/save")
    public R save(@RequestBody OrderEntity order);

    @RequestMapping("/order/orderdetail/save")
    public R save(@RequestBody OrderDetailEntity orderDetail);
}
